useState array not updated when invoking function from another screen

visit shbcf.ru